﻿using Microsoft.AspNetCore.Http;
using System.Collections.Generic;

namespace NetCore.Model.VeiwModels
{
    /// <summary>
    /// 邮件类
    /// </summary>
    public class Mail
    {
#pragma warning disable CS1587 // XML 注释没有放在有效语言元素上
        /// <summary>
        /// 发送人
        /// </summary>
        //public string fromPerson { get; set; }

        /// <summary>
        /// 收件人地址(多人)
        /// </summary>
        public string[] RecipientArry { get; set; }

#pragma warning restore CS1587 // XML 注释没有放在有效语言元素上

        /// <summary>
        /// 抄送地址(多人)
        /// </summary>
        public string[] MailCcArray { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string MailTitle { get; set; }

        /// <summary>
        /// 正文
        /// </summary>
        public string MailBody { get; set; }

#pragma warning disable CS1587 // XML 注释没有放在有效语言元素上
        /// <summary>
        /// 客户端授权码(可存在配置文件中)
        /// </summary>
        //public string code { get; set; }

        /// <summary>
        /// SMTP邮件服务器
        /// </summary>
        public string Host { get; set; }

#pragma warning restore CS1587 // XML 注释没有放在有效语言元素上

        /// <summary>
        /// 正文是否是html格式
        /// </summary>
        public bool IsbodyHtml { get; set; }

        /// <summary>
        /// 接收文件
        /// </summary>
        public List<IFormFile> Files { get; set; }
    }
}